
package game.control {
	import game.manager.LayerManager;
	import game.view.LoginView;
	
	import utils.Singleton;
	
	/**
	 * Login
	 *
	 * @author chris
	 *
	 * Apr 16, 2013
	 */
	public class Login extends Singleton{
		private var loginView:LoginView;
		public function Login()
		{
			super();
			loginView = new LoginView();
			showLogin();
		}
		
		public static function get inst():Login {
			return Singleton.getInstanceOrCreate(Login) as Login;
		}
		
		public function showLogin():void {
			LayerManager.inst.loginLayer.addChild(loginView);
		}
	}
}